package com.szjk.web.controller;

import com.szjk.web.service.UserAppService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenxinglin
 * @version 1.0
 * @description
 * @date 2021-11-24 14:14
 * @company szjk
 */
@RestController
@RequestMapping("/web/user")
public class UserWebController {

    @Autowired
    private UserAppService appService;

    @GetMapping("/{id}")
    private String getInfo(@PathVariable String id){
        return "hello, this is web‘s  " + id;
    }

    @GetMapping("/getAppInfo/{id}")
    private String getAppInfo(@PathVariable String id){
        return appService.getAppUser(id);
    }
}
